package com.example.demo.contorller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.TestService;

@RestController
public class TestContorller {
	
	@Autowired
	private TestService service;
	
	@GetMapping("/test/{ss}")
	public String test1(@PathVariable(value = "ss") int ss) {
		System.out.println("执行了contorller");
		return service.test1(ss);
	}
}
